<style>
/* 重写样式 */
.fui-header.block {
    display: block;
}

.fui-tab {
    margin: 0;
}

.fui-tab a {
    height: 2.2rem;
    line-height: 2.2rem;
}

.fui-tab:after {
    display: none;
}
.nickname {
    color: #50b6fe;
}
    .shop-index-page .menu {height: auto; background: #fff;}
    .shop-index-page .menu .item {height: auto; width: 1%; padding: 0.5rem 0; margin: 0; font-size: 0.7rem; color: #636363; text-align: center; display: table-cell;position: relative;}
    .shop-index-page .menu .item:after  {font-size: 0.7rem;position: absolute;content: '';left:-1px;top:0.5rem;bottom:0.5rem;border-left:1px solid #d9d9d9;}
    .content-empty{padding:1rem 0;margin:0;}
source{
    min-width: 100%;
    min-height: 100%;
    height: auto;
    width: auto;
}
</style>

<div ng-if="pagedata.op=='main'" class="fui-page shop-index-page" style="display:block;">
    <div class="fui-content" style="padding-bottom:4rem">
		<div class="fui-searchbar bar" style="background:none;z-index: 0;">
					<div ng-class="{'searchbar':1,'searchbar-active':pagedata.searchbar ==1}" style="background:none">
							<div style="position: relative;left:0;top:0;">
								<div class="search-input" style="">
									<i id="searchsub" class="icon icon-sousuo1"  ng-click="tool.get_list('jy_wechatnews/mylist/getlist/',true)"></i>
									<input type="search" placeholder="搜索报价" class="search" ng-model="pagedata.params.keyword" style="text-align: left; color: #999; font-size:0.6rem;border-radius: 1rem;" />
								</div>
							</div>
					</div>
		</div>
		<div style="padding:0 0.6rem">
			<div class="fui-list-group radius" style="margin-top:0">
			<div ng-repeat="item in pagedata.list" class="fui-list">
				<div class="fui-list-media">
					<img ng-src="{{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}}" class="round">
				</div>
				<div class="fui-list-inner">
					<div class="row">
						  <div class="row-text" >
						 {{item.title}}
						  </div>
					</div>
					<div class="syscolor" style="font-size:0.55rem">奖励金币{{item.jinbi||0}},佣金{{item.price||0}}</div>
					<div class="subtitle">
						<span><i class="icon icon-paihao0"></i> {{item.likenum || 0}}人</span>
						<span style="margin-left:0.5rem">{{item.updatetimetitle}}</span>
					</div>
					<div class="subtitle">
						<span style="margin-right:0.6rem"><red>{{pagedata.list_status[item.status]}}</red></span>
						<span><red>{{item.noshow==1?'已下架':'已上架'}}</red></span>
					</div>
				</div>
				<div class="row-remark">
					<div ng-click="access_json('jy_wechatnews/up//id='+item.id)" class="jylabel jylabel-success">编辑</div>
					<div ng-click="post({},'del','id='+item.id,'','确认删除吗？')" class="jylabel jylabel-red active">删除</span></div>		
				</div>
			</div>
			</div>
			<div ng-if="!pagedata.loading && (!pagedata.list || pagedata.list.length<1)" class='content-empty' style="margin-top:0">
				<i class='icon icon-chakanpingjia'></i><br/>暂时没有任何报价
			</div>
			<div ng-if="pagedata.loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
		</div>
	</div>
<div ng-include="sys_html('_footer')"></div>
</div>
<script>
scope.pagedata.setshowewm=function(item){
	scope.post_json('/index/looklog/id='+item.id,{},function(res){
		if(res=='success'){
			
		}
	});
}
if(scope.pagedata.op!='edit'){
	//滚动加载
	scope.tool.get_list('jy_wechatnews/mylist/getlist/keyword='+scope.pagedata.params.keyword,true);
	scope.pagedata.scroll_bottom=function(){
		scope.tool.get_list('jy_wechatnews/mylist/getlist/keyword='+scope.pagedata.params.keyword);
	}
	//手机软键盘--搜索
	$("body").keydown(function() {
		if (event.keyCode == "13") {
			$('#searchsub').click();
		}
	});
}
</script>